<template>
  <div id="app">
    <router-view/>
    <van-tabbar route placeholder   fixed>
          <van-tabbar-item replace to="/" icon="home-o">
            首页
          </van-tabbar-item>
          <van-tabbar-item replace to="/topic" icon="todo-list-o">
            专题
          </van-tabbar-item>
          <van-tabbar-item replace to="/category" icon="newspaper-o">
            分类
          </van-tabbar-item>
          <van-tabbar-item replace to="/cart" icon="shopping-cart-o">
            购物车
          </van-tabbar-item>
             <van-tabbar-item replace to="/my" icon="user-o">
            我的
          </van-tabbar-item>
    </van-tabbar>
    
  </div>
</template>
<script>
export default {
    created(){
      var userInfo = {

      "openId":"17630221714",

      "nickName":"滴滴",

      "avatarUrl":"https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIbWFEIJj8IpGeHM7dGic1aTFZALjWcMm9ltWfFiaQfVRYticWBfgGfzXWMt2EkJWiaicPtftHAlWxUibxQ/132"

    };

    var openId = userInfo.openId;

    localStorage.setItem("userInfo", JSON.stringify(userInfo));

    localStorage.setItem("openId", openId);
    }
}
</script>

<style lang="scss">

// * {
//   border: 1px solid red;
// }
  body{
  background-color: #f4f4f4;
}
</style>
